<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>output元素</title>
	</head>
	<body>
		<!-- <output> 定义不同类型的输出，比如脚本的输出。 -->
		<form oninput="result.value=parseInt(a.value, 10) + parseInt(b.value, 10)">
			<input type="range" id="a" name="a" value="50" />+
			<input type="number" id="b" name="b" value="50" />
			= <output name="result" for="a b">100</output>
		</form>
	</body>
</html>
